home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5219 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  974 b 

  1. Path: d123.sp.interaccess.com!plague
  2. From: plague@winternet.com (Kent Squires)
  3. Newsgroups: comp.lang.c++
  4. Subject: I need a quick lesson in changing dos text attributes
  5. Date: Fri, 2 Feb 1996 19:09:51 -0600
  6. Organization: InterAccess,Chicagoland's Full Service Internet Provider
  7. Message-ID: <plague.12.0006799E@winternet.com>
  8. NNTP-Posting-Host: d123.sp.interaccess.com
  9. X-Newsreader: Trumpet for Windows [Version 1.0 Rev B final beta #4]
  10.  
  11. OK, I need a quick lesson on how to change DOS text attributes, such as 
  12. text/background color.
  13.  
  14. We were given a line of code:
  15.  
  16. mypage.SetAttribute(VideoText::fgBlue);
  17.  
  18. we are suppose to write SetAttribute
  19.  
  20. All they give us is:
  21.  
  22. void VideoText::SetAttribute( unsigned char attribute)
  23. {
  24.  // Your code here
  25. }
  26.  
  27. I've tried textcolor(attribute); and that didnt work.  If anybody can help me 
  28. out, I'd greatly appreciate it.  This DOS attribute stuff is new to me...
  29.  
  30. Respond via email:  plague@winternet.com   or
  31.             ksquires@interaccess.com
  32.